package com.csair.irp.job.file.parser.manual;

import com.csair.irp.job.file.task.DispatchLogPO;
import com.csair.irp.job.file.parser.base.FileManagePO;
import com.csair.irp.job.file.parser.base.BaseFileParser;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

/**
 * @Auther: liaolonglong
 * @Date: 2018/12/19 10:36
 * @Description:
 */
public abstract class ManualBaseFileParser extends BaseFileParser {

    @Autowired
    private ManualTemplateService manualTemplateService;

    @Override
    protected FileManagePO getFileManage(String path, String fileName, DispatchLogPO dispatchLog, Map<Object, Object> params) {
        return fileManageService.getFileManageByPathAndFileName(path, fileName);
    }
}
